package com.bawei.mine

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.bawei.mine.databinding.ActivityLoginBinding
import com.blankj.utilcode.util.ToastUtils
import com.bw.lib_mvvm.BaseActivity

class LoginActivity : BaseActivity<ActivityLoginBinding>() {
    //1
    override fun initView() {
        viewDataBinding.btnMineLoginLogin.setOnClickListener {
            val name =viewDataBinding.etMineLoginUsername.text.trim().toString()
            val password =viewDataBinding.etMineLoginPwd.text.trim().toString()
            if (name.isBlank()){
                ToastUtils.showLong("请输入用户名")
                return@setOnClickListener
            }
            if (password.isBlank()){
                ToastUtils.showLong("请输入用户名")
                return@setOnClickListener
            }

        }
        viewDataBinding.tvLoginRegister.setOnClickListener {

        }
    }

    override fun initData() {

    }

    override fun bindLayout(): Int =R.layout.activity_login

}